import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("rrz_goods_brand", { schema: "rrzcms" })
export class RrzGoodsBrand {
  @PrimaryGeneratedColumn({
    type: "int",
    name: "id",
    comment: "品牌表",
    unsigned: true,
  })
  id: number;

  @Column("varchar", { name: "title", comment: "品牌名称", length: 255 })
  title: string;

  @Column("varchar", { name: "logo", comment: "品牌logo", length: 255 })
  logo: string;

  @Column("text", { name: "desc", nullable: true, comment: "备注介绍" })
  desc: string | null;

  @Column("varchar", { name: "url", comment: "品牌地址", length: 255 })
  url: string;

  @Column("smallint", {
    name: "sort",
    comment: "排序",
    unsigned: true,
    default: () => "'100'",
  })
  sort: number;
}
